import request from '@/sheep/request';

interface ArticleApiParams {
  id: string;
  title: string;
}

export default {
  // 获得文章详情
  getArticle: (id: string, title: string): Promise<any> => {
    return request({
      url: '/promotion/article/get',
      method: 'GET',
      params: { id, title }
    });
  }
}
